<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

// 登录接口（无需验证）
Route::post('login/index', '\app\controller\LoginController@index');
// 用户模块（需验证 JWT）
Route::group(function () {
    Route::get('user/info', '\app\controller\UserController@info');
    Route::get('user/wx', '\app\controller\UserController@wx');
})->middleware(\app\middleware\JwtAuth::class);
